Skip to content

[Pelias][OpenRouteService][GeocodeEarth] Fix admin level ordering#1202

Closed
mrbig wants to merge 5 commits into
geocoder-php:masterfrom
mrbig:pelias/admin_levels
Closed

[Pelias][OpenRouteService][GeocodeEarth] Fix admin level ordering#1202
mrbig wants to merge 5 commits into
geocoder-php:masterfrom
mrbig:pelias/admin_levels

Conversation

@mrbig

@mrbig mrbig commented Oct 24, 2023

Copy link
Copy Markdown

Order of the adminLeves in Pelias did not have any particular order. I have changed the order according to this ticket: #852

Please note that this might be a breaking change for someone.

Order of the adminLeves in Pelias did not have any particular order.
I have changed the order according to this ticket:
geocoder-php#852

Please note that this might be a breaking change for someone.
mrbig added 2 commits October 26, 2023 10:40
AdminLevels are now ordered according to the following principles
geocoder-php#852
AdminLevels are now ordered according to the following principles
geocoder-php#852
@mrbig mrbig changed the title [Pelias] Fix admin level ordering [Pelias][OpenRouteService][GeocodeEarth] Fix admin level ordering Oct 26, 2023
@mrbig

mrbig commented Oct 26, 2023

Copy link
Copy Markdown
Author

I have noticed that there are two other providers that use the Pelias provider. That means that this change affects those as well.

I have update their unit tests.

I'm not sure if such a change is acceptable by your policy. This can be considered as a bugfix but also a breaking change.

Comment thread src/Provider/Pelias/Tests/AdminLevelTest.php Outdated
Comment thread src/Provider/Pelias/Tests/AdminLevelTest.php Outdated
Comment thread src/Provider/Pelias/Tests/AdminLevelTest.php Outdated
@jbelien

jbelien commented Mar 19, 2025

Copy link
Copy Markdown
Member

I've been working on an improvement for Pelias provider and I've included a refactoring of the admin levels extraction in #1250.

@mrbig

mrbig commented Mar 24, 2025

Copy link
Copy Markdown
Author

I've been working on an improvement for Pelias provider and I've included a refactoring of the admin levels extraction in #1250.

This is a fix for #852
The main change here was only one line, the others are just the updated tests.

@mrbig

mrbig commented Mar 24, 2025

Copy link
Copy Markdown
Author

@jbelien I've reviewed your change in pr #1250 and I believe your order matches mine eventually making this PR a duplicate of yours..

@jbelien

jbelien commented Mar 28, 2025

Copy link
Copy Markdown
Member

Superseded by #1250

@jbelien jbelien closed this Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants